package com.ruoyi.health.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.health.mapper.HealthStatusMapper;
import com.ruoyi.health.domain.HealthStatus;
import com.ruoyi.health.service.IHealthStatusService;

/**
 * 身体状况信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
@Service
public class HealthStatusServiceImpl implements IHealthStatusService 
{
    @Autowired
    private HealthStatusMapper healthStatusMapper;

    /**
     * 查询身体状况信息
     * 
     * @param id 身体状况信息主键
     * @return 身体状况信息
     */
    @Override
    public HealthStatus selectHealthStatusById(Long id)
    {
        return healthStatusMapper.selectHealthStatusById(id);
    }

    /**
     * 查询身体状况信息列表
     * 
     * @param healthStatus 身体状况信息
     * @return 身体状况信息
     */
    @Override
    public List<HealthStatus> selectHealthStatusList(HealthStatus healthStatus)
    {
        return healthStatusMapper.selectHealthStatusList(healthStatus);
    }

    /**
     * 新增身体状况信息
     * 
     * @param healthStatus 身体状况信息
     * @return 结果
     */
    @Override
    public int insertHealthStatus(HealthStatus healthStatus)
    {
        return healthStatusMapper.insertHealthStatus(healthStatus);
    }

    /**
     * 修改身体状况信息
     * 
     * @param healthStatus 身体状况信息
     * @return 结果
     */
    @Override
    public int updateHealthStatus(HealthStatus healthStatus)
    {
        return healthStatusMapper.updateHealthStatus(healthStatus);
    }

    /**
     * 批量删除身体状况信息
     * 
     * @param ids 需要删除的身体状况信息主键
     * @return 结果
     */
    @Override
    public int deleteHealthStatusByIds(Long[] ids)
    {
        return healthStatusMapper.deleteHealthStatusByIds(ids);
    }

    /**
     * 删除身体状况信息信息
     * 
     * @param id 身体状况信息主键
     * @return 结果
     */
    @Override
    public int deleteHealthStatusById(Long id)
    {
        return healthStatusMapper.deleteHealthStatusById(id);
    }
}
